"""
流程控制
"""

#分支结构(选择结构)
#单分支结构:if
# num_01 = 5
# num_02 = 7
# num_03 = 0
# if num_02 > num_01:
#     num_03 = num_02 - num_01
# print(num_03)


#双分支结构:if - else
# num_01 = 5
# num_02 = 3
# num_03 = 0
# if num_02 > num_01:
#     num_03 = num_02 - num_01
# else:
#     num_03 = num_02 + num_01
# print(num_03)

#多分支结构：if-elif-elif..-else
# num_01 = 5
# num_02 = 6
# num_03 = 0
# num_04 = 1
# if num_02 > num_01:
#     num_03 = num_02 - num_01
# elif num_01 == num_02:
#     num_03 = num_02 * num_01
# else:
#     num_03 = num_02 + num_01
# print(num_03)

#循环结构
#while循环  要求：输入一个整数n，求S = 1+2+3+...+n的值。
# n = int(input("请输入一个整数n："))
# S = 0
# temp = 0
# while temp <= n: #0 + 1 + 2 +...+n
#     S = temp + S
#     temp += 1  # temp = temp + 1
# print(S)

#for循环
# n = int(input("请输入一个整数n："))
# S = 0
# for temp in range(0,n + 1):
#     S = temp + S
# print(S)


# while True:
#     print("我好棒")
#     num = int(input("给我一个整数：-1停止"))
#     if num == -1:
#         break

# for i in range(1,101):
#     if i == 50:
#         # break
#         continue
#     print(i)

#输出九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(j," * ",i, " = ",i*j,'  ',end='  ')
    print("")